    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <?php echo include_http_metas() ?>
    <?php echo include_metas() ?>
    <?php echo include_title() ?>    

    </head>
    <body>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td colspan="2" class="fmedio">
            <div id="logo">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="fmedio"><?php //echo image_tag("gui/index_1x1.png", array ( 'width' => '758' , 'heigth' => '77' ) )?></td>
                        <td class="fmedio" align="right"><!-- datos del usuario -->
                            <?php if($sf_user->isAuthenticated() == true): ?>
                            <table class="user-info">
                                <tr>
                                    <td nowrap="nowrap">Bienvenido, <?php echo link_to($sf_user->getAttribute('usuario'), 'usuario/edit?id='.$sf_user->getAttribute('id')) ?>
                                    </td>
                                </tr>
                            </table>
                            <?php else: ?>
                                Bienvenido, An&oacute;nimo
                            <?php endif; ?>
                        </td>
                    </tr>
                </table>
            </div>
                </td>
                <td id="marco_derecha"><?php echo image_tag("gui/index_1x2.png", array ( 'width' => '17' , 'heigth' => '77' ) )?></td>
            </tr>
            <tr valign="top">
                <td class="fizq-menu" width="1%">&nbsp;</td>
                <td colspan="1" class="fmenu"><?php
                    if($sf_user->isAuthenticated() == true)  {
                        include("menu.php");
                    }
                    ?>
                    <div id="menu" align="right">
                    <a href ="javascript:window.print()"><?php echo image_tag('print.png',array('title'=>'Imprimir','alt'=>'print.png','border'=>0))?></a>
                    </div>
                </td>
                <td id="marco_derecha"><?php echo image_tag("gui/index_2x2.png", array ( 'width' => '17' , 'heigth' => '35' ) )?></td>
            </tr>
            <tr valign="top">
                <td width="33" class="fizq">&nbsp;</td>
                <td width="959">
                    <div id="cabecera" align="center">
                    <?php
                        if($sf_user->isAuthenticated() != true)  {
                            if ($sf_params->get('module') != 'seguridad' && $sf_params->get('action') !='login') {
                               include_partial('seguridad/login', array('sf_params' => $sf_params, 'error_inicio_sesion' => @$error_inicio_sesion));                                                    
                            }
                       }
                    ?>
                    </div>
                    <br/>
                    <div id="content"><?php echo $sf_content ?></div>
                </td>
                <td width="17" class="fder">&nbsp;</td>
            </tr>
            <tr id="marco_pie" valign="top">
                <td><?php echo image_tag("gui/index3_5x1.png", array ( 'width' => '33' , 'heigth' => '22' ) )?></td>
                <td class="fdown">&nbsp;</td>
                <td><?php echo image_tag("gui/index3_5x3.png", array ( 'width' => '17' , 'heigth' => '20' ) )?></td>
            </tr>
        </table>
    </body>
<?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
    </html>
